﻿
namespace PersonImplementation
{
    public class Person
    {
        public string Name { get; set; }
        public int? Age { get; set; }

        public Person(string name) : this(name, null)
        {
        }

        public Person(string name, int? age)
        {
            this.Name = name;
            this.Age = age;
        }

        public override string ToString()
        {
            return string.Format(
                "Name: {0}\nAge: {1}", Name,
                Age != null ? Age.ToString() : "Not specified.");
        }
    }
}
